package com.youen.dto.vo;

import lombok.Data;

@Data
public class AjaxDoneVO {
	private String statusCode = "200";
	private String message = "操作成功";
	private String tabid;
	private String dialogid;
	private boolean closeCurrent = true;
	private String forward = "";
	private String forwardConfirm = "";

	public AjaxDoneVO(String statusCode, String message) {
		super();
		this.statusCode = statusCode;
		this.message = message;
	}

	public static AjaxDoneVO getfailAjaxDoneVO(String message) {
		return new AjaxDoneVO("300", message);
	}
	
	public AjaxDoneVO() {
		super();
	}

	@Override
	public String toString() {
		return "{\"statusCode\":\"" + statusCode + "\",\"message\":\"" + message + "\",\"tabid\":\"" + tabid + "\",\"dialogid\":\"" + dialogid + "\",\"closeCurrent\":" + closeCurrent + ",\"forward\":\"" + forward + "\",\"forwardConfirm\":\"" + forwardConfirm + "\"}";
	}

	public AjaxDoneVO(String tabid) {
		super();
		this.tabid = tabid;
	}

}
